<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>考试管理 - 在线考试系统</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
    <div class="container mt-5">
        <h1 class="text-center">考试管理</h1>

        <div class="card p-4">
            <h2 class="text-center">设置考试时长</h2>
            <form method="POST" action="{{ url_for('set_exam_time', username=session['username']) }}">
                <div class="mb-3">
                    <label for="class_name" class="form-label">班级名称</label>
                    <input type="text" class="form-control" id="class_name" name="class_name" required>
                </div>
                <div class="mb-3">
                    <label for="exam_duration" class="form-label">考试时长（分钟）</label>
                    <input type="number" class="form-control" id="exam_duration" name="exam_duration" required>
                </div>
                <button type="submit" class="btn btn-primary">设置考试</button>
            </form>
        </div>
    </div>
</body>
</html>
